package com.zls.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Component;

import java.util.Date;
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
//采集数据功能
public class TDeviceGather {
    @TableId(value = "ID",type = IdType.AUTO)
    private int id;//设备采集数据主键
    private int deviceId;//采集的设备id
    private String deviceSn;//设备唯一序列号
    private String deviceName;//设备名称
    private String deviceType;//传感器类型
    private String basicData;//采集的数据
    private int measurementUnitId;//计量单位id
    private String measurementUnitName;//计量单位
    private String measurementUnitType;//单位类型
    private Date gatherTime;//采集时间
    private Date createTime;//创建时间
    private Date updateTime;//更新时间

    //一对一设备
    @TableField(exist = false)
    private TDevice tDevice;
}
